#ifndef _TLV_H
#define _TLV_H
#define CAP 1024
#include <string.h>


class TLV
{
    
public:
    TLV(int type,int length,const char *data):_type(type),_length(length) {
        strncpy(_data,data,CAP-1);
    }
    ~TLV() {}

public:
    int _type;
    int _length;
    char _data[CAP]={0};

};
#endif

